<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
<title>商城登录</title>
    <script src="/drclothes/Public/js/jquery.min.js"></script>    
    <script src="/drclothes/Public/js/bootstrap.min.js"></script>  
    <link href="/drclothes/Public/css/bootstrap.min.css" rel="stylesheet">
    <link href="/drclothes/Public/css/animate.min.css" rel="stylesheet">
    <link href="/drclothes/Public/css/style.css" rel="stylesheet">
</head>
<body>
    
<div class="container-fluid background9">
<div class="container">
    <div class="row clearfix">
        <div class="col-xs-12 column">
            <?php
 if(!isset($_SESSION['username'])){ echo'<h6><a href="/drclothes/index.php"  style="color:#999;"><font class="glyphicon glyphicon-home">首页</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="/drclothes/index.php/home/form/login"  style="color:#999;"><font>登录</font></a>&nbsp;|&nbsp;
                        <a href="/drclothes/index.php/home/form/register"  style="color:#999;"><font>注册</font></a></h6>'; } else{ $username= $_SESSION['username']; $userrank= $_SESSION['userrank']; echo "<h6><font style='float:right;'>".$userrank."&nbsp;".$username."&nbsp;&nbsp;
                        <a href='/drclothes/index.php/home/form/logout' style='color:#999;'>退出</font>
                        <a href='/drclothes/index.php' style='color:#999;'><font class='glyphicon glyphicon-home'>首页</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        </h6>"; } ?>
        </div>
    </div>
</div>
</div>
<div class="container-fluid">
    <div class="container">
		<div class="row clearfix">
            <div class="col-xs-12 column" align="center">
                <img src="/drclothes/Public/image/logo.png" class="img-responsive margin15" />
            </div>
            <div class="col-xs-offset-4 col-xs-4 column" align="center" style="padding-top:13px;">
                <form role="search" class="form-horizontal" action="/drclothes/index.php/home/form/searchresult" method="get" style="margin-bottom:0px;">
                    <div class="input-group">
                        <input id="query" name="name" type="text" placeholder="搜索 商品..." class="form-control" required />
                        <span class="input-group-btn">
                            <button class="btn button2" type="submit" style="top:0px;">搜索</button>
                        </span>
                    </div>
                </form>
            </div>
		</div>
	</div>
</div>
<div class="container">
    <div class="row clearfix">
        <div class="col-xs-12 column padding3 padding1" align="center">
            <a href="/drclothes/index.php">首页</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/searchresult?name=">全部</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/searchresult?name=新">新款</a>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/searchresult?name=促销">促销</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/searchresult?name=男">男士</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/searchresult?name=女">女士</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/cart">购物车</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/orderlist">订单</a>
        </div>       
    </div>
</div>

<div class="container">
	<div class="row clearfix margin9"  style="min-height:600px;">
		<div class="col-xs-12 column padding1" align="center">
			<form class="form-horizontal margin4" method="post" action="/drclothes/index.php/Home/Form/login_process" autocomplete="off">
				<fieldset>

				<!-- 表单名称 -->
				<h3><b>登录</b></h3>
                <?php if(!isset($_SESSION['user_id'])){ echo '<p class="error">'.$error_msg.'</p>'; } ?>
				<!-- 文本框-->
				<div class="form-group">
				  <label class="col-md-4 control-label" for="textinput"></label>  
				  <div class="col-md-4">
				  <input id="" name="user" type="text" placeholder="请输入账号" class="form-control input-md" required="" autocomplete="off">
				    
				  </div>
				</div>

				<!-- 文本框-->
				<div class="form-group">
				  <label class="col-md-4 control-label" for="textinput"></label>  
				  <div class="col-md-4">
				  <input id="" name="password" type="password" placeholder="请输入密码" class="form-control input-md" required="" autocomplete="off">
				    
				  </div>
				</div>
				<!--验证码-->
				<div class="form-group">
				  <label class="col-md-4 control-label" for="textinput"></label>  
				  <div class="col-md-2">
							<input id="" name="verify" type="text" placeholder="请输入验证码" class="form-control input-md" required="">
				  </div>
					<div class="col-md-2" id="captcha-container">
									<img height="34px" alt="验证码" src="<?php echo U('Home/Form/verify_c',array());?>" title="点击刷新">
				  </div>
				</div>

				<!-- 按钮 -->
				<div class="form-group">
				  <label class="col-md-4 control-label" for="singlebutton"></label>
				  <div class="col-md-4">
				    <input type="submit" value="登录"  class="btn btn-block btn-lg btn-submit  button2"></button>
                   <!--  <h6 align="right"><a href="/drclothes/index.php/home/form/register" style="color:#333;">&nbsp;&nbsp;免费注册</a></h6> -->
				  </div>
				</div>

				</fieldset>
			</form>

		</div>
	</div>
</div>
<script>
	var captcha_img = $('#captcha-container').find('img')  
	var verifyimg = captcha_img.attr("src");  
	captcha_img.attr('title', '点击刷新');  
	captcha_img.click(function(){  
			if( verifyimg.indexOf('?')>0){  
					$(this).attr("src", verifyimg+'&random='+Math.random());  
			}else{  
					$(this).attr("src", verifyimg.replace(/\?.*$/,'')+'?'+Math.random());  
			}  
	}); 
</script>
<div class="container-fluid">
<div class="container">
	<div class="row clearfix" align="center">
			<div class="col-xs-12 column color1 padding3">
		       	<img alt="" src="/drclothes/Public/image/logo.png" class="img-responsive" />
		    </div>
			<h5 style="margin-top:140px;">Drclothes 辽ICP备123456789号</h5>
		</div>
	</div>
</div>	
</div>
</body>
</html>